home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCIncludes / stddef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-18  |  683 b   |  43 lines  |  [TEXT/MMCC]

  1. /* stddef.h standard header */
  2. #ifndef _STDDEF
  3. #define _STDDEF
  4. #ifndef _YVALS
  5. #include <yvals.h>
  6. #endif
  7.  
  8. #if __MWERKS__
  9. #pragma options align=mac68k
  10. #endif
  11.  
  12.         /* macros */
  13. #ifndef NULL
  14. #define NULL    _NULL
  15. #endif
  16. #define offsetof(T, member)    ((_Sizet)&((T *)0)->member)
  17.         /* type definitions */
  18. #ifndef    _PTRDIFFT
  19. #define _PTRDIFFT
  20. typedef _Ptrdifft ptrdiff_t;
  21. #endif
  22. #ifndef _SIZET
  23. #define _SIZET
  24. typedef _Sizet size_t;
  25. #endif
  26. #ifndef _WCHART
  27. #define _WCHART
  28. typedef _Wchart wchar_t;
  29. #endif
  30.  
  31. #if __MWERKS__
  32. #pragma options align=reset
  33. #endif
  34.  
  35. #endif
  36.  
  37.  
  38. /*
  39.  * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
  40.  * Consult your license regarding permissions and restrictions.
  41.  */
  42.  
  43.